import request from './request'

export const login = (data) => {
  return request.post('/auth/login', data)
}

export const register = (data) => {
  return request.post('/auth/register', data)
}

export const getUserInfo = () => {
  return request.get('/auth/userinfo')
}

export const updatePassword = (data) => {
  return request.put('/auth/password', data)
}
